package cs.uns.edu.ar.aygps.view.menu;

import javax.swing.JDesktopPane;
import javax.swing.JMenuBar;

@SuppressWarnings ({"serial"})
public class HotelMenuBar extends JMenuBar{
	
	JDesktopPane panel;
	
	public HotelMenuBar(JDesktopPane p){
		panel = p;
	}
	
	
	public void buildMenu() {
		ClienteMenu clientes = ClienteMenu.getInstance();clientes.setPanel(panel);
		ReservasMenu reservas = ReservasMenu.getInstance();reservas.setPanel(panel);
		CheckInMenu checkin = CheckInMenu.getInstance();checkin.setPanel(panel);
		CheckOutMenu checkout = CheckOutMenu.getInstance();checkout.setPanel(panel);
		HabitacionesMenu habitaciones = HabitacionesMenu.getInstance();habitaciones.setPanel(panel);
		ReportesMenu report = ReportesMenu.getInstance();report.setPanel(panel);
		
		
		
		this.add(clientes);
		this.add(reservas);
		this.add(checkin);
		this.add(checkout);
		this.add(habitaciones);
		this.add(report);
	}
}
